package com.itheima.consumer.feign;

import com.itheima.consumer.config.LogConfig;
import com.itheima.consumer.domain.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "EUREKA-PROVIDER",configuration = LogConfig.class,fallback = FeignClientConfigFallBack.class)
public interface FeignClientConfig {

    @GetMapping("/goods/findOne/{id}")
    public Goods findGoodsById(@PathVariable("id") int id);
}
